package com.itobase.statusDetect.Repository;

import com.itobase.statusDetect.Model.Classroom;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author htyu
 * @date 2019/2/24
 */
public interface ClassroomRepository extends MongoRepository<Classroom,String> {

    Classroom findByAddress(String name);

    List<Classroom> findByCameraID(String id);
}
